package com.power.fegin;

import com.power.domain.Prod;
import com.power.fegin.sentinel.StoreProdFeignSentinel;
import com.power.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description 门店业务模块调用商品服务模块的Feign接口
 * @Author dingchunlin
 * @Date 2024/07/17 21:54
 * @Version 1.0.0
 */
@FeignClient(value = "product-service",fallback = StoreProdFeignSentinel.class)
public interface StoreProdFeign {

    @GetMapping("/prod/prod/getProdListById")
    public Result<List<Prod>> getProdListByIds(@RequestParam List<Long> prodIdList);

}
